package com.hyx.java.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("hyx_user")
@ApiModel("用户列表信息")
public class HyxUser {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("账号")
    private String userName;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("姓名")
    private String realName;
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("管理员 1 用户 0")
    private Integer isAdmin;

}
